﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZedGraph;
using System.Data;

namespace CanSWAT.SWAT.Output
{
    class OutputDisplayChartZedGraph : ZedGraphControl
    {
        public OutputDisplayChartZedGraph()
        {
            GraphPane.XAxis.Type = ZedGraph.AxisType.Date;
            GraphPane.YAxis.Scale.MinAuto = true;
            GraphPane.YAxis.Scale.MaxAuto = true;
            IsShowPointValues = true;
            PointDateFormat = "d";
            PointValueFormat = "0.000";
        }

        public void DrawGraph(DataRow[] rows, string xColName, string yColName)
        {
            //zedGraphControl1.GraphPane.CurveList.Clear();
            //string column = cmbReachColumns.SelectedItem.ToString();
            //int id = int.Parse(cmbReachIDs.SelectedItem.ToString());
            //int year = int.Parse(cmbYears.SelectedItem.ToString());
            //LineItem line = zedGraphControl1.GraphPane.AddCurve(column, _output.Plot(id, year, column), System.Drawing.Color.Red);
            ////line.Symbol.Type = SymbolType.Circle;
            ////line.Symbol.Size = 1;

            //zedGraphControl1.Invalidate();
            //zedGraphControl1.AxisChange();
        }
    }
}
